public class EdrDriver extends BaseDriver
printListener
Constructor and Description |
---|
EdrDriver(BluetoothEdrConfigBean bluetoothEdrConfigBean) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ConnectStateEnum |
getConnectState() |
BluetoothInterface |
getPrinterInterface() |
byte[] |
readMsg() |
void |
run() |
void |
setPrinterInterface(BluetoothInterface printerInterface) |
void |
write(byte[] btMsg) |
void |
writeASync(byte[] btMsg) |
getisAlwaysReadInputStream, getIsPrinting, getPrintListener, input2byte, seIsPrinting, setAlwaysReadInputStream, setPrintListener
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public EdrDriver(BluetoothEdrConfigBean bluetoothEdrConfigBean)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public byte[] readMsg()
public void write(byte[] btMsg)
public void writeASync(byte[] btMsg)
public void close()
public ConnectStateEnum getConnectState()
getConnectState
in class BaseDriver
public void setPrinterInterface(BluetoothInterface printerInterface)
public BluetoothInterface getPrinterInterface()